using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class Sys_ADRecord : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _FormName;
		/// <summary>
		/// FormName
		/// </summary>
		[Entity(ColumnName = CNFormName, IsNotNull = true)]
		public System.String FormName
		{
			get { return _FormName; }
			set
			{
				_FormName = value;
				base.SetFieldChanged(CNFormName) ;
			}
		}

		private System.String _DgvName;
		/// <summary>
		/// DgvName
		/// </summary>
		[Entity(ColumnName = CNDgvName, IsNotNull = true)]
		public System.String DgvName
		{
			get { return _DgvName; }
			set
			{
				_DgvName = value;
				base.SetFieldChanged(CNDgvName) ;
			}
		}

		private System.String _Caption;
		/// <summary>
		/// Caption
		/// </summary>
		[Entity(ColumnName = CNCaption, IsNotNull = true)]
		public System.String Caption
		{
			get { return _Caption; }
			set
			{
				_Caption = value;
				base.SetFieldChanged(CNCaption) ;
			}
		}

		private System.String _CaptionCode;
		/// <summary>
		/// CaptionCode
		/// </summary>
		[Entity(ColumnName = CNCaptionCode, IsNotNull = true)]
		public System.String CaptionCode
		{
			get { return _CaptionCode; }
			set
			{
				_CaptionCode = value;
				base.SetFieldChanged(CNCaptionCode) ;
			}
		}

		private System.Boolean _IsPublic;
		/// <summary>
		/// IsPublic
		/// </summary>
		[Entity(ColumnName = CNIsPublic, IsNotNull = true)]
		public System.Boolean IsPublic
		{
			get { return _IsPublic; }
			set
			{
				_IsPublic = value;
				base.SetFieldChanged(CNIsPublic) ;
			}
		}

		private System.String _UserId;
		/// <summary>
		/// UserId
		/// </summary>
		[Entity(ColumnName = CNUserId, IsNotNull = true)]
		public System.String UserId
		{
			get { return _UserId; }
			set
			{
				_UserId = value;
				base.SetFieldChanged(CNUserId) ;
			}
		}

		private System.DateTime _LastUseTime;
		/// <summary>
		/// LastUseTime
		/// </summary>
		[Entity(ColumnName = CNLastUseTime, IsNotNull = true)]
		public System.DateTime LastUseTime
		{
			get { return _LastUseTime; }
			set
			{
				_LastUseTime = value;
				base.SetFieldChanged(CNLastUseTime) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNFormName = "FormName";
		public const string CNDgvName = "DgvName";
		public const string CNCaption = "Caption";
		public const string CNCaptionCode = "CaptionCode";
		public const string CNIsPublic = "IsPublic";
		public const string CNUserId = "UserId";
		public const string CNLastUseTime = "LastUseTime";
		#endregion

	}
}
